package com.heng.mapbundle

import android.content.Context


/**
 * @Author    : zhangheng227
 * date       : 2025/5/12
 */
class MockLocation {
    companion object {
        private var instance: MockLocation? = null
        @JvmStatic
        var applicationContext: Context? = null
            private set

        fun getInstance(): MockLocation {
            if (instance == null) {
                instance = MockLocation()
            }
            return instance!!
        }

        fun init(context: android.content.Context) {
            applicationContext = context.applicationContext
        }
    }

    fun getLocation(): MyLocation?{
        return MyLocation().apply {
            latitude = 111.1
            longitude = 222.2
        }
    }
}